package cn.smile.commons.constant;

/**
 * @author 10834
 * redis 缓存key
 */
public class RedisKeyConstant {
    /**
     * 用户Token信息
     */
    public static final String USER_TOKEN_KEY = "micro::userInfo::%s";
    public static final Long USER_TOKEN_TIMEOUT = 604800L;
    /**
     * 禁止访问IP地址
     */
    public static final String BAN_ACCESS_ADDRESS = "micro::banAddress";

    public static final Long BAN_ACCESS_ADDRESS_TIMEOUT = 20L;
    public static final String IGNORE_URLS_KEY = "micro::ignoreUrls";
    public static final Long IGNORE_URLS_TIMEOUT = 86400L;
    public static final String ROLE_URLS_KEY = "micro::roleUrls::%s";
    public static final Long ROLE_URLS_TIMEOUT = 86400L;
    public static final String USER_REGISTER_KEY = "micro::register::%s";
    public static final Long USER_REGISTER_TIMEOUT = 7200L;
    public static final String USER_FORGET_PWD_KEY = "micro::forget::%s";
    public static final Long USER_FORGET_PWD_TIMEOUT = 7200L;
    public static final String SUSPEND_VISIT_IP_NUM_KEY = "micro::suspendVisit::%s";
    public static final Long SUSPEND_VISIT_IP_NUM_TIMEOUT = 1200L;
}
